from django.urls import path
from .views import main, add_task, task_detail, TaskChangeView, TaskDoneView, add_empty_tasks


app_name = 'task'

urlpatterns = [
    path('', main, name='main'),
    path('<int:year>/', main, name='main'),
    path('<int:task_id>/add/', add_task, name='task-add'),
    path('<str:name>/add-empty/', add_empty_tasks, name='task-empty-add'),
    path('<str:name>/<int:count>/add-empty/', add_empty_tasks, name='task-empty-add'),
    path('<int:task_id>/change/', TaskChangeView.as_view(), name='task-change'),
    path('<int:task_id>/done/', TaskDoneView.as_view(), name='task-done'),
    path('<int:task_id>/detail/', task_detail, name='task-detail'),
]
